
import Api from '../src/Api';

import { models } from './models'

Api.prefix = "http://onceio.top/es";

//let res = await Api.create();
//console.log('create', res);

for (let m of models) {
    //console.log(m.id, m.title);
    let model = { id: m.id, title: m.title, url: '' }
    //console.log('curl -X PUT http://onceio.top/es/model3d/_doc/'+m.id,'-d', "'"+JSON.stringify(model)+"'")
    console.log('curl -X PUT http://192.168.0.80/es/model3d/_doc/'+m.id,'-H "Content-Type: application/json" -d', "'"+JSON.stringify(model)+"'")
    await Api.put(model);
}
